home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / utilities / pu086.dms / pu086.adf / include / stddef.h < prev    next >
C/C++ Source or Header  |  1990-12-04  |  433b  |  21 lines

  1. /*
  2.  * STDDEF.H    standard definitions
  3.  */
  4.  
  5. #ifndef STDDEF_H
  6. #define STDDEF_H
  7.  
  8. #ifndef    NULL
  9. #define    NULL        (0L)
  10. #endif
  11.  
  12. typedef    int        size_t;        /* sizeof() value type */
  13. typedef    long        ptrdiff_t;    /* pointer subtraction result type */
  14. typedef int        wchar_t;    /* wide characters */
  15.  
  16. /* offset in bytes of 'membr' in structure 'typ' */
  17. #define offsetof(T,m) \
  18.     ((size_t) (((char *) &(((T *) 256)->m)) - ((char *) ((T *) 256))))
  19.  
  20. #endif STDDEF_H
  21.